﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZR.Model.Models.BusinessData {

    public class BusinessDataBase {

        /// <summary>
        /// ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// PLCID
        /// </summary>
        [SugarColumn(ColumnDescription = "PLCID")]
        public int PlcID { get; set; }

        /// <summary>
        /// DbBlock
        /// </summary>
        [SugarColumn(ColumnDescription = "Db块")]
        public int DbBlock { get; set; }

        /// <summary>
        /// 主产品码
        /// </summary>
        [SugarColumn(ColumnDescription = "主产品码")]
        public string PrimaryCode { get; set; }

        /// <summary>
        /// 循环时间
        /// </summary>
        [SugarColumn(ColumnDescription = "循环时间")]
        public int CycleTime { get; set; }

        /// <summary>
        /// 结果
        /// </summary>
        [SugarColumn(ColumnDescription = "结果 1：OK 2：NG")]
        public int Result { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 是否无效
        /// </summary>
        [SugarColumn(ColumnDescription = "是否无效 0：有效 1：无效")]
        public bool IsValid { get; set; } = true;

        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(ColumnDescription = "是否删除")]
        public bool IsDeleted { get; set; } = false;

    }

}
